People agreed that it doesn't make sense to make an xembed
implementation like plug/socket does not make sense on anything but X11.
And as GdkNativeWindow is going away for multibackend portability
reasons, we'd either need API fixes in the plug-socket codee or
constrain the widgets to a single backend. We chose the latter.
gtkpango.c \
gtkpapersize.c \
gtkpathbar.c \
- gtkplug.c \
gtkprintcontext.c \
gtkprintoperation.c \
gtkprintoperationpreview.c \
gtksizegroup.c \
gtksizerequest.c \
gtkshow.c \
- gtksocket.c \
gtkspinbutton.c \
gtkspinner.c \
gtkstatusbar.c \
endif
gtk_use_x11_c_sources = \
+ gtkplug.c \
gtkplug-x11.c \
+ gtksocket.c \
gtksocket-x11.c \
gtkxembed.c \
gtktrayicon-x11.c \
#ifndef __GTK_PLUG_H__
#define __GTK_PLUG_H__
+#include <gdk/gdk.h>
+
+#ifdef GDK_WINDOWING_X11
+
#include <gtk/gtksocket.h>
#include <gtk/gtkwindow.h>
G_END_DECLS
+#endif /* GDK_WINDOWING_X11 */
+
#endif /* __GTK_PLUG_H__ */
#ifndef __GTK_SOCKET_H__
#define __GTK_SOCKET_H__
+#include <gdk/gdk.h>
+
+#ifdef GDK_WINDOWING_X11
+
#include <gtk/gtkcontainer.h>
G_BEGIN_DECLS
G_END_DECLS
+#endif /* GDK_WINDOWING_X11 */
+
#endif /* __GTK_SOCKET_H__ */